﻿using Inaction.Core;
using Inaction.Mapping;
using System.Collections.Generic;
using System.ComponentModel;

namespace Inaction.Business
{
    public interface IEntityList : Inaction.Core.IEntityList
#if WINDOWS
, IBindingList
#endif
    {
        SqlStatement SqlStatement { get; }
        bool AllowQuery { get; }
        bool AllowEdit { get; }
        bool AllowNew { get; }
        bool AllowRemove { get; }
        object AddNew();
        bool CheckErrors(out string error, System.Data.IDbTransaction trans = null);

        void Refresh();
    }
}